<template>
	<div class="zco-transfer-container">
		<p v-if="!failReason">{{ getMessage }}</p>
		<p v-if="failReason">转接失败，原因：{{ getReason }}</p>
	</div>
</template>
<script>
import { getAgentStatus } from '@/utils/util';
export default {
	name: 'APP',
	props: {
		failReason: {
			type: String,
			default: () => ''
		},
		bizSceneName: {
			type: String,
			default: () => ''
		},
		agentId: {
			type: String,
			default: () => ''
		}
	},
	computed: {
		getMessage() {
			return `发起转接到业务场景 <${this.bizSceneName}> 坐席 ${this.agentId.includes('*') ? '' : `<${this.agentId}>`}`;
		},
		getReason() {
			return getAgentStatus(this.failReason);
		}
	},
	data() {
		return {};
	},
	methods: {},
	created() {},
	mounted() {}
};
</script>
<style scoped>
.zco-transfer-container p {
	margin: 0;
	word-break: break-all;
}
</style>
